package frontend.pages.settings.personalprofile;

import static shared.other.UserRolesDefinition.*;

import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;

import frontend.pages.base.BaseWebPage;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.wicketstuff.annotation.mount.MountPath;

@MountPath("personalProfile")
@AuthorizeInstantiation(value = {EMPLOYEE_ROLE_KEY, FOREMAN_ROLE_KEY, ADMIN_ROLE_KEY})
public class PersonalProfilePage extends BaseWebPage {

    public PersonalProfilePage(PageParameters pageParameters) {
        super("pages.personalProfile.contextualHelp");
        add(new PersonalProfilePanel("personalProfilePanel", pageParameters));
    }

    public PersonalProfilePage() {
        this(null);
    }
}
